Find a match pattern of any digit and space with any character in a string and replace with | in PHP